package top.oneit.jdownload.data.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * @author lingkang
 * @date 2021/11/20
 */
@Getter
@Setter
@Table(name = "app_config")
@Entity
public class AppConfig {
    @Id
    private Long id;

    @Column(length = 20)
    private String version;

    @Column(name = "default_thread_number",length = 3)
    private Integer defaultThreadNumber;

    @Column(name = "default_save_path",length = 225)
    private String defaultSavePath;

    @Column(columnDefinition = "VARCHAR(2048) comment '默认请求头，json格式'")
    private String defaultRequestHeader;
}
